home *** CD-ROM | disk | FTP | other *** search
- Path: howland.reston.ans.net!psinntp!psinntp!psinntp!psinntp!usenet
- From: grantp@usa.pipeline.com(Pete Grant)
- Newsgroups: comp.lang.c++
- Subject: Re: Does Borland share these MSVC++ problems?
- Date: 24 Mar 1996 16:48:44 GMT
- Organization: Kalevi, Inc.
- Message-ID: <4j3udc$m6t@news1.h1.usa.pipeline.com>
- References: <4j2m6q$lg6@cnn.Princeton.EDU>
- NNTP-Posting-Host: 38.8.120.9
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete Grant)
- X-Newsreader: Pipeline v3.5.0
-
- On Mar 24, 1996 05:22:34 in article <Does Borland share these MSVC++
- problems?>, 'john@meenie.Princeton.EDU (John Saponara)' wrote:
-
-
- >Folks,
- >
- >As I was unable to wait long enough on the phone for Borland pre-sale
- >tech support (cannot afford to be on hold that long and that far away),
- >please let me know if Borland differs from MS Visual C++ in any of the
- >following traits (all of which have frustrated me regarding VC++).
- >I have come to expect these features from using GNU C++, but must
- >diagnose a particular problem using a C++ compiler for PCs.
- >
- >1. Do index variables declared in the for statement persist after the
- loop?
- >
- Yes, but this is subject to change in future releases as the new
- ANSI/ISO standard is implemented by the compiler developers.
- I have not yet received BC++5.0 (I got the books but no compiler) so
- I can not say how index vars are handled in that version.
-
- >2. Is there no `bool' builtin type?
- >
- As of MSVC++ 4.1, and BC++ 4.52, no. Again, subject to change --
- in fact, reading BC++ 5.0 literature, bool is implemented
- in that version.
-
- >3. Must I return a value from a non-void function
- >even in a branch that calls exit(1)?
- >
- No, not in BC++4.52, at least -- but you'll get a warning to
- that effect.
-
- (Question 4: I don't know off the top of my head).
-
- > 5. Are the POSIX functions (particularly sleep, link, unlink)
- >unavailable?
- They are available in BC++4.52. They also are in MSVC++ with minor
- mods: there's a Sleep Win32 API function; link and unlink are _link
- and _unlink.
-
- >6. Is there no iostream extension that takes the same vararg list as
- printf()?
- >In g++ you can write, for example: cout.form( "%s\n", charArray );
- >
- No, there's not. IMHO, this extension isn't even desirable as it's
- against the iostream philosophy; i.e., type safety. Seems to me that
- if one wants to emulate printf, then one might just as well use printf.
- ios::sync_with_stdio takes care of the only problem. Of course,
- linking two libraries is a drawback. Just my $0.02.
-
-
- --
- Pete Grant
- Kalevi, Inc.
- Software Engineering & development
-